gridSVGMappings
.
readMappingsJS(filename)
grid.export
.
fromJSON
function to parse JSON text,
the JavaScript file produced by grid.export
needs to be
transformed. It needs to transform from being an assignment of an object
literal to simply the object literal itself. This function performs that task by producing a valid JSON string ready
for parsing by fromJSON
. It then returns the parsed list.